#pragma once
#include "..\DUI\ControlHierarchy.h"


class CMainWindow :
	public Jin::CWinApp32T<CMainWindow>
{
public:
	CMainWindow(void);
	virtual ~CMainWindow(void);

	void PreRegisterWindowClass(WNDCLASSEX&);
	void PreCreateWindow(CREATESTRUCT&, INT&);
	BOOL PreTranslateMessage(HWND, LPMSG);
	BOOL Initialize(HWND);
	void UpdateFrame(HWND, LPMSG);
	void Uninitialize(void);
	LRESULT MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
	CControlHierarchy		m_ctrlHierarchy;
};

extern CMainWindow theApp;

